import { customRequest } from "../request/custom";
import { post } from "../request/request";

/**
 * 上传图片
 * @param formData 
 * @param callback 
 */
export const fetchUpload = async (formData: {},callback?: () => void | boolean) => {
  return customRequest(() => post("/api/upload",formData),callback);
};